home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / Rez / ODTypes.r < prev    next >
Encoding:
Text File  |  1997-01-01  |  2.7 KB  |  104 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ODTypes.r
  3.  
  4.     Contains:    OpenDoc Resource templates
  5.  
  6.     Owned by:    Caia Grisar
  7.  
  8.     Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>    10/25/95    TJ        #1292206 OLE Class Registry Resource
  13.                                     Template
  14.          <1>     8/24/95    TJ        first checked in
  15.          <1>      6/8/95    RR        first checked in
  16.          <6>     5/10/95    CG        #1243604    The constant kNameMappings renamed
  17.                                     to kODNameMappings
  18.          <5>     3/29/95    NP        1233490: Use Mac system constant for
  19.                                     international text stuff.
  20.          <4>     2/10/95    CG        #1177475: Added new 'nmap' type for
  21.                                     Platform Space info.
  22.          <3>      1/3/95    TÇ        1191189 Eliminate duplicate Def.h, Def.xh
  23.                                     files
  24.          <2>    10/19/94    CG        #1191532: Changed 'NMAP' to kNameMappings
  25.          <1>     7/11/94    eeh        first checked in
  26.          <4>      5/2/94    eeh        fix name of file in line 1 of comment
  27.          <3>     1/21/94    CG        More NMAP changes.
  28.          <2>     1/18/94    CG        New NMAP format!
  29.          <1>    11/17/93    CG        first checked in
  30.     To Do:
  31. */
  32.  
  33. #ifndef __ODTYPES_R__
  34. #define __ODTYPES_R__
  35.  
  36. #ifndef SystemSevenOrBetter
  37. #define SystemSevenOrBetter 0
  38. #endif
  39.  
  40. #ifndef SystemSevenOrLater                    /* <19> KIP - Define to 0 if it is not defined */
  41. #define SystemSevenOrLater 0
  42. #endif
  43.  
  44. #ifndef SOM_Module_OpenDoc_StdDefs_defined
  45. #include "StdDefs.r"
  46. #endif
  47.  
  48. #ifndef __SYSTYPES_R__
  49. #include "SysTypes.r"
  50. #endif
  51.  
  52.  
  53.  
  54. /*----------------------------NMAP • NMAP Template-----------------------------------*/
  55. type kODNameMappings {
  56.     wstring;                                    /* NameSpace name */
  57.     integer = $$Countof(KeyList);
  58.     array KeyList {
  59.         wstring;                                /* A Key */
  60.         switch {
  61.             case kODIsMacOSType:
  62.                 key int = kODIsMacOSTypeID;
  63.                 literal longint;                /* an OSType */
  64.             case kODIsINTLText:
  65.                 key int = kODIsINTLTextID;
  66.                 integer Script;                    /* an international text struct */
  67.                 integer Language;
  68.                 wstring;
  69.             case kODIsAnISOString:
  70.                 key int = kODIsAnISOStringID;
  71.                 wstring;                        /* an ISOString */            
  72.             case kODIsAnISOStringList:
  73.                 key int = kODIsAnISOStringListID;
  74.                 integer = $$Countof(ValueList);
  75.                 array ValueList {                /* an array of ISOStrings */
  76.                     wstring;                
  77.                 };
  78.             case kODIsPltfmTypeSpac:
  79.                 key int = kODIsPltfmTypeSpacID;
  80.                 integer = $$Countof(PltfmTypeSpacList);
  81.                 array PltfmTypeSpacList {        /* an array of PlatformTypeSpaces */
  82.                     literal longint;            /* PlatformTypeSpace */    
  83.                     literal longint;            /* PlatformType */
  84.                     integer Script;                /* an international text struct */
  85.                     integer Language;
  86.                     wstring;
  87.                     wstring;                    /* an ISOString */            
  88.                 };
  89.             case kODIsHelpFileName:
  90.                 key int = kODIsHelpFileNameID;
  91.                 wstring;                        /* Help file name */
  92.         };        
  93.     };
  94. };
  95.  
  96. /*----------------------------OLE • OLE Class Registry Resource Template-----------------------------------*/
  97.  
  98. type 'olcr' {
  99.       cstring;
  100. };
  101.  
  102.  
  103. #endif __ODTYPES_R__
  104.